home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Into His Marvelous Light
/
Into His Marvelous LIGHT.iso
/
lesson2.dxr
/
00235_Script_Play Done
< prev
next >
Wrap
Text File
|
1998-01-03
|
1KB
|
50 lines
-- DESCRIPTION --
on getBehaviorDescription me
return "¼
PLAY DONE"&RETURN&RETURN&"¼
Use this behavior to end a sequence and to return the playback head to ¼
where the most recent 'Play' command was issued."&RETURN&RETURN&"¼
If you drop it onto a graphic member, the 'play done' command ¼
is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
If you drop it onto the Stage or the Script Channel of the Score, ¼
it will be sent when the playback head leaves the frame (on exitFrame)."¼
&RETURN&RETURN&"¼
PARAMETERS: None"&RETURN&RETURN&"¼
ASSOCIATED BEHAVIORS:"&RETURN&"¼
+ Play Frame X"&RETURN&"¼
+ Play Movie X"
end getBehaviorDescription
on getBehaviorTooltip me
return "¼
Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
Returns the playback head to the frame where the"&RETURN&"¼
most recent 'play' command was issued. Acts on"&RETURN&"¼
mouseUp or on exitFrame, depending on whether"&RETURN&"¼
you drag it to a sprite or to the Stage."
end getBehaviorTooltip
-- HISTORY --
-- 3 November 1998, written for the D7 Behaviors Palette by James Newton
-- EVENT HANDLERS --
on mouseUp me
-- The user clicked on a sprite
play done
end mouseUp
on exitFrame me
if the currentSpriteNum = 0 then
-- The behavior is attached to a frame
play done
end if
end exitFrame